/*
 * @Author: Siyongkun
 * @Date: 2021-07-23 15:13:36
 * @Last Modified by: Siyongkun
 * @Last Modified time: 2021-07-23 17:01:46
 */
import { Component } from 'react';
import style from './index.less';
export default class index extends Component<any> {
  render() {
    let { state } = this.props.location;
    return (
      <div>
        {state && (
          <div>
            <img className={style.img} src={state.img} alt="" />
            <div>
              <h3>{state.name}</h3>
              <p>
                <b>{state.other}</b>
              </p>
              <p>
                <i>价格:{state.price}</i>
              </p>
              <p>{state.unit_price}</p>
            </div>
          </div>
        )}
      </div>
    );
  }
}
